package ysq.xyg.recovery.service;

import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.recovery.model.po.RecoverySackRecord;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.recovery.model.vo.RecoverySackRecordVo;

import java.util.List;

/**
 * 回收金模块-袋子记录表service接口
 *
 * @author congcong tao
 * @date 2019-7-8 14:46:54
 */
public interface RecoverySackRecordService extends BaseService<RecoverySackRecord> {

    /**
     * 分页查询
     *
     * @param recoverySackRecordVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-7-8 14:46:54
     */
    ReturnEntity page(RecoverySackRecordVo recoverySackRecordVo, int pageSize, int pageNum);

    /**
     * 分页查询
     *
     * @param recoverySackRecordVo
     * @param pageSize
     * @param pageNum
     * @author congcong tao
     * @date 2019/7/8 15:18
     */
    ReturnEntity pageLeft(RecoverySackRecordVo recoverySackRecordVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param recoverySackRecordVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-7-8 14:46:54
     */
    ReturnEntity addOrUpdate(RecoverySackRecordVo recoverySackRecordVo, SysUser currentUser);

    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-7-8 14:46:54
     */
    ReturnEntity delete(String id, SysUser currentUser);

    /**
     * 获取集合
     *
     * @param recoverySackRecordVo 对象
     * @return List<RecoverySackRecord> RecoverySackRecord集合
     * @author congcong tao
     * @date 2019-7-8 14:46:54
     */
    List<RecoverySackRecord> acceptList(RecoverySackRecordVo recoverySackRecordVo);

    /**
     * 员工处理绑定的袋子
     * @param recoverySackRecordVo
     * @author congcong tao
     * @date 2019/7/9 10:09
     */
    ReturnEntity updateSackRecord(RecoverySackRecordVo recoverySackRecordVo);

    /**
     * 完成盘点
     * @param id
     * @author congcong tao
     * @date 2019/7/9 10:28
     */
    ReturnEntity completeSack(String id);

    /**
     * 完成订单
     * @param id
     * @author congcong tao
     * @date 2019/8/6 16:57
     */
    ReturnEntity completeOrder(String id);
}
